@extends('home.base')
@section('title'){{ $site['title']??'' }}@endsection
@section('keywords'){{ $site['keywords']??'' }}@endsection
@section('description'){{ $site['description']??'' }}@endsection
@section('content')
    <style>
        .swiper-slide img{width:100%;}
    </style>
    <div class="page-wrapper">

        <!-- Preloader -->
        <div class="preloader"></div>

        @include('home.header')

        <!--Main Slider-->
        <div class="swiper-container">
            <div class="swiper-wrapper">
                <div class="swiper-slide">
                    <img data-src="/static/home/images/slider/banner0.jpg" class="swiper-lazy" alt="燕窝果苗批发">
                    <div class="swiper-lazy-preloader"></div>
                </div>
                <div class="swiper-slide">
                    <img data-src="/static/home/images/slider/banner1.jpg" class="swiper-lazy" alt="燕窝果苗批发">
                    <div class="swiper-lazy-preloader"></div>
                </div>
                <div class="swiper-slide">
                    <img data-src="/static/home/images/slider/banner2.jpg" class="swiper-lazy" alt="火龙果苗批发">
                    <div class="swiper-lazy-preloader"></div>
                </div>
                <div class="swiper-slide">
                    <img data-src="/static/home/images/slider/banner3.jpg" class="swiper-lazy" alt="燕窝果种植">
                    <div class="swiper-lazy-preloader"></div>
                </div>
            </div>
        </div>

        <a name="product"></a>
        <section class="main-features feature-bg-cl pad-bot-80" id="services">

            <div class="container">

                <div class="sec-title text-center">
                    <h2>华椰产品信息</h2>
                    <div class="text">HUAYE TROPICAL CROPS</div>
                </div>
                <!-- /END Feature SECTION HEADER -->


                <div class="jv-st-srv">
                    <div class="row">
                        <!-- SINGLE SERVICE -->
                        <div class="col-md-4 i-list">
                            <div class="featured-item-2 text-center m-bot-40">
                                <div style="width:100%;height:100%;overflow:hidden;">
                                    <img class="lazy" data-original="/static/home/images/products/yanwoguo.jpg" alt="华椰 - 燕窝果" style="width:100%;">
                                </div>
                                <h4 style="line-height:50px;">华椰 - 燕窝果</h4>
                            </div>
                        </div>
                        <div class="col-md-4 i-list">
                            <div class="featured-item-2 text-center m-bot-40">
                                <div style="width:100%;height:100%;overflow:hidden;">
                                    <img class="lazy" data-original="/static/home/images/products/hongxin.jpg" alt="华椰 - 红心火龙果" style="width:100%;">
                                </div>
                                <h4 style="line-height:50px;">华椰 - 红心火龙果</h4>
                            </div>
                        </div>
                        <div class="col-md-4 i-list">
                            <div class="featured-item-2 text-center">
                                <div style="width:100%;height:100%;overflow:hidden;">
                                    <img class="lazy" data-original="/static/home/images/products/xiaochengxu.jpg" alt="华椰商城" style="width:100%;">
                                </div>
                                <h4 style="line-height:50px;">华椰商城 - 微信扫码了解更多</h4>
                            </div>
                        </div>
                    </div>

                </div>

            </div>
            <!-- /END CONTAINER -->

        </section>
        <!-- /END Feature SECTION -->

        <a name="base"></a>
        <div class="sec-title text-center" style="padding-top:40px;">
            <h2>华椰种植基地分布区域</h2>
            <div class="text">HUAYE BASE DISTRIBUTION AREA</div>
        </div>
        <div id="allmap" style="height:500px;"></div>


        <!--Events Section-->
        <section class="events-section latest-events">
            <div class="auto-container" style="display:flex;flex-direction: column;">

                <div class="sec-title text-center">
                    <h2>华椰种植基地介绍</h2>
                    <div class="text">INTRODUCTION OF HUAYE PLANTING BASE</div>
                </div>
                <div class="row clearfix">

                    <!--Featured Column-->
                    <div class="column default-featured-column style-two col-lg-4 col-md-6 col-sm-6 col-xs-12">
                        <article class="inner-box">
                            <figure class="image-box">
                                <a href="#"><img class="lazy" data-original="/static/home/images/resource/featured-image-5.jpg" alt="东方三家种植基地"></a>

                            </figure>
                            <div class="content-box">
                                <h3><a href="#">东方三家种植基地</a></h3>

                                <div class="column-info">东方感恩平原的珍稀馈赠</div>
                                <div class="text">计划投资1500万元，已投资1150万元建设东方市三家镇乐安村360亩火龙果、燕窝果示范种植基地。 </div>
                                <!-- <a href="#" class="theme-btn btn-style-three">Read More</a> -->
                            </div>
                        </article>
                    </div>

                    <!--Featured Column-->
                    <div class="column default-featured-column style-two col-lg-4 col-md-6 col-sm-6 col-xs-12">
                        <article class="inner-box">
                            <figure class="image-box">
                                <a href="#"><img class="lazy" data-original="/static/home/images/resource/featured-image-6.jpg" alt="东方陀兴种植基地"></a>
                            </figure>
                            <div class="content-box">
                                <h3><a href="#">东方陀兴种植基地</a></h3>
                                <div class="column-info">东方感恩平原的珍稀馈赠</div>
                                <div class="text">计划投资1700万元，已投资1250万元建设东方市感城镇陀头村300亩火龙果、燕窝果示范种植基地。</div>
                                <!-- <a href="#" class="theme-btn btn-style-three">Read More</a> -->
                            </div>
                        </article>
                    </div>

                    <!--Featured Column-->
                    <div class="column default-featured-column style-two col-lg-4 col-md-6 col-sm-6 col-xs-12">
                        <article class="inner-box">
                            <figure class="image-box">
                                <a href="#"><img class="lazy" data-original="/static/home/images/resource/featured-image-6a.jpg" alt="陵水燕窝果种植基地"></a>
                            </figure>
                            <div class="content-box">
                                <h3><a href="#">陵水燕窝果种植基地</a></h3>
                                <div class="column-info">建设一个农场，振兴一个村庄</div>
                                <div class="text">计划投资1000万，建设陵水150亩标准化燕窝果种植示范种植基地和智慧农业科研基地。 </div>
                                <!-- <a href="#" class="theme-btn btn-style-three">Read More</a> -->
                            </div>
                        </article>
                    </div>

                </div>
            </div>
        </section>

        <!--Featured Fluid Section-->
        <section class="featured-fluid-section">


            <div class="outer clearfix">

                <!--Image Column-->
                <div class="image-column" style="background-image:url(/static/home/images/resource/fluid-image-1.jpg);"></div>

                <!--Text Column-->
                <article class="column text-column dark-column" data-wow-delay="0ms" data-wow-duration="1500ms" >

                    <div class="content-box pull-left">
                        <h2>来自宝岛海南最大平原</h2>
                        <div class="title-text">—— 北纬18度的珍稀馈赠</div>
                        <div class="text">
                            燕窝果（也称麒麟果）原产于中美洲。燕窝果营养丰富、香甜滑腻、功能独特，它含有一般植物少有的植物性白蛋白及花青素，
                            丰富的维生素和水溶性膳纤维。目前由海南南春椰子农业信息科技有限公司引进，在岛内最大平原——感恩平原，
                            依靠海南北纬18度的天然热带气候特征培育种植，目前种植面积已达300亩，并且成功挂果，品质优良。
                        </div>
                        <!-- <a href="#" class="theme-btn btn-style-one">donate Now</a>
                        <a href="#" class="theme-btn btn-style-two">View more</a> -->
                    </div>

                    <div class="clearfix"></div>

                </article>

            </div>

        </section>
        <section class="featured-fluid-section">
            <div class="outer clearfix">

                <!--Text Column-->
                <article class="column text-column dark-column text-column_two" data-wow-delay="0ms" data-wow-duration="1500ms" >

                    <div class="content-box pull-left">
                        <h2>来自宝岛海南阳光东海岸上的明珠</h2>
                        <div class="title-text">—— 文昌椰子故乡的珍稀馈赠</div>
                        <div class="text">
                            泰国金椰子因椰果色质金黄色，故俗称金椰子，其最大特色糖分含量高，椰肉细腻松软，营养丰富，
                            含有多重人体需要的氨基酸，古人一直流传红椰子能治病，是优质的天然绿色食品，
                            具有很高的经济价值，目前在市场上非常紧俏。一年四季可提供采摘服务。
                        </div>
                        <!-- <a href="#" class="theme-btn btn-style-one">donate Now</a>
                        <a href="#" class="theme-btn btn-style-two">View more</a> -->
                    </div>

                    <div class="clearfix"></div>

                </article>

                <!--Image Column-->
                <div class="image-column image-column_two" style="background-image:url(/static/home/images/resource/fluid-image-2.jpg);"></div>

            </div>

        </section>


        <!-- =========================
              BLOG
          ============================== -->
        <section class="blog-news-section latest-news">
            <div class="auto-container"  style="display:flex;flex-direction: column;">

                <div class="sec-title text-center">
                    <h2>行业新闻</h2>
                    <div class="text">INDUSTRY NEWS</div>
                </div>
                <div class="row clearfix">

                    <!--News Column-->
                    @if(!empty($news))
                        @foreach($news as $n)
                    <div class="column blog-news-column col-lg-4 col-md-6 col-sm-6 col-xs-12">
                        <article class="inner-box wow fadeInUp" data-wow-delay="{{ $loop->index * 300 }}ms" data-wow-duration="1500ms">
                            <figure class="image-box">
                                <a href="{{ route('home.news.article', ['id'=>$n->id]) }}"><img class="lazy" data-original="{{ $n->thumb }}" alt="{{ $n->title }}"></a>

                            </figure>
                            <div class="content-box">
                                <h3 class="over-ellipsis"><a href="{{ route('home.news.article', ['id'=>$n->id]) }}">{{ $n->title }}</a></h3>
                                <div class="text">{{ $n->description }}</div>
                                <a href="{{ route('home.news.article', ['id'=>$n->id]) }}" class="theme-btn read-more">Read More</a>
                            </div>
                        </article>
                    </div>
                        @endforeach
                    @endif

                </div>
            </div>
        </section>


        @include('home.footer')
        <div class="links">
            <span>友情链接：</span>
            @if(!empty($links))
                @foreach($links as $link)
                    <a href="{{ $link->url }}" target="_blank">{{ $link->title }}</a>
                @endforeach
            @endif
        </div>

    </div>
    <!--End pagewrapper-->
@endsection

@section('script')
{{--    <link rel="stylesheet" href="/static/home/css/video-js.css">--}}
    <link rel="stylesheet" href="/static/home/css/animate.css">
    <link rel="stylesheet" href="/static/home/css/swiper-bundle.min.css">
{{--    <script src="/static/home/js/videojs-ie8.min.js"></script>--}}
{{--    <script src="/static/home/js/video.js"></script>--}}
    <script src="/static/home/js/swiper-bundle.min.js"></script>
    <script type="text/javascript" src="http://api.map.baidu.com/api?v=3.0&ak=2pOLT55iaTI8LVvPfirAgUDqaZa0sdnj"></script>
    <script src="/static/home/js/inmap.min.js"></script>
{{--    <script type="text/javascript" src="http://unpkg.com/inmap/dist/inmap.min.js"></script>--}}
    <script type="text/javascript">

        var mySwiper = new Swiper('.swiper-container', {
            autoplay: true,//可选选项，自动滑动
            lazy:true,  //图片懒加载
            loop:true,
            delay: 5000,
        })
        mySwiper.lazy.load();

        var inmap = new inMap.Map({
            id: 'allmap',
            skin: "Blueness",
            center: [108.8439972700,19.2243028000],
            zoom: {
                value: 5,
                show: true,
                max: 18,
                min: 9
            },
        })
        let data = [{
            name: '三家种植基地',
            geometry: {
                type: 'Point',
                coordinates: ['108.842408','19.222805']
            },
            style: {
                color: '#6EE7FF',
                speed: 1,
                size: 45,
            }
        },
            {
                name: '陀兴种植基地',
                geometry: {
                    type: 'Point',
                    coordinates: ['108.853877','18.856087']
                },
                style: {
                    color: '#90EE90',
                    speed: 0.85,
                    size: 30,
                }
            },
            {
                name: '南岭水库',
                geometry: {
                    type: 'Point',
                    coordinates: ['110.8836643500','19.9598243300']
                },
                style: {
                    color: '#f8983a',
                    speed: 1,
                    size: 35,
                }
            },
            {
                name: '陵水燕窝果种植基地',
                geometry: {
                    type: 'Point',
                    coordinates: ['110.046838','18.52097']
                },
                style: {
                    color: '#FAFA32',
                    speed: 1,
                    size: 35,
                }
            }

        ]
        var overlay = new inMap.PointAnimationOverlay({
            style: {
                fps: 90, //动画帧数
                color: "#FAFA32",
                size: 20,
                speed: 0.15
            },
            data: data
        });
        inmap.add(overlay);
    </script>
@endsection
